<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="java.util.*"%>
<%@ page import="com.fc.util.*" %>
<%@ page import="com.fc.model.Admin" %>
<%@ page import="com.fc.control.AdminControl" %>
<%@ include file="../login/login_check.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>admin_delete_do</title>
</head>
<body>
<%
    		request.setCharacterEncoding("UTF-8");
    		int id=ParamUtil.getInt(request,"id",0);
    		AdminControl ac = new AdminControl();
    		if(ac.deleteAdmin(id))
    		{
     %>
    <script language="javascript">
     alert("删除成功");
     window.location.href="admin.jsp";
     </script>
		<%} else {%>
	<script language="javascript">
     alert("删除失败");
     window.location.href="admin.jsp";
     </script>
     <%}%>
</body>
</html>